package com.ttj.domain.oracle.gen;

import java.io.Serializable;
import java.util.Date;

public class SuperBasPushInfo implements Serializable {
    /**
     * 自增长ID
     */
    private Integer pid;

    /**
     * 订单ID
     */
    private Integer orderId;

    /**
     * PUSH任务
     */
    private String pushUser;

    /**
     * PUSH内容
     */
    private String pushContent;

    /**
     * PUSH时间
     */
    private Date pushTime;

    /**
     * 操作者
     */
    private String author;

    /**
     * 应答状态；0-未应答；1-已经应答
     */
    private Integer resCode;

    /**
     * 应答时间
     */
    private Date resTime;

    /**
     * PUSH类型；1--送货push
     */
    private Integer pushType;

    private static final long serialVersionUID = 1L;

    /**
     * 自增长ID
     */
    public Integer getPid() {
        return pid;
    }

    /**
     * 自增长ID
     */
    public void setPid(Integer pid) {
        this.pid = pid;
    }

    /**
     * 订单ID
     */
    public Integer getOrderId() {
        return orderId;
    }

    /**
     * 订单ID
     */
    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    /**
     * PUSH任务
     */
    public String getPushUser() {
        return pushUser;
    }

    /**
     * PUSH任务
     */
    public void setPushUser(String pushUser) {
        this.pushUser = pushUser;
    }

    /**
     * PUSH内容
     */
    public String getPushContent() {
        return pushContent;
    }

    /**
     * PUSH内容
     */
    public void setPushContent(String pushContent) {
        this.pushContent = pushContent;
    }

    /**
     * PUSH时间
     */
    public Date getPushTime() {
        return pushTime;
    }

    /**
     * PUSH时间
     */
    public void setPushTime(Date pushTime) {
        this.pushTime = pushTime;
    }

    /**
     * 操作者
     */
    public String getAuthor() {
        return author;
    }

    /**
     * 操作者
     */
    public void setAuthor(String author) {
        this.author = author;
    }

    /**
     * 应答状态；0-未应答；1-已经应答
     */
    public Integer getResCode() {
        return resCode;
    }

    /**
     * 应答状态；0-未应答；1-已经应答
     */
    public void setResCode(Integer resCode) {
        this.resCode = resCode;
    }

    /**
     * 应答时间
     */
    public Date getResTime() {
        return resTime;
    }

    /**
     * 应答时间
     */
    public void setResTime(Date resTime) {
        this.resTime = resTime;
    }

    /**
     * PUSH类型；1--送货push
     */
    public Integer getPushType() {
        return pushType;
    }

    /**
     * PUSH类型；1--送货push
     */
    public void setPushType(Integer pushType) {
        this.pushType = pushType;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", pid=").append(pid);
        sb.append(", orderId=").append(orderId);
        sb.append(", pushUser=").append(pushUser);
        sb.append(", pushContent=").append(pushContent);
        sb.append(", pushTime=").append(pushTime);
        sb.append(", author=").append(author);
        sb.append(", resCode=").append(resCode);
        sb.append(", resTime=").append(resTime);
        sb.append(", pushType=").append(pushType);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SuperBasPushInfo other = (SuperBasPushInfo) that;
        return (this.getPid() == null ? other.getPid() == null : this.getPid().equals(other.getPid()))
            && (this.getOrderId() == null ? other.getOrderId() == null : this.getOrderId().equals(other.getOrderId()))
            && (this.getPushUser() == null ? other.getPushUser() == null : this.getPushUser().equals(other.getPushUser()))
            && (this.getPushContent() == null ? other.getPushContent() == null : this.getPushContent().equals(other.getPushContent()))
            && (this.getPushTime() == null ? other.getPushTime() == null : this.getPushTime().equals(other.getPushTime()))
            && (this.getAuthor() == null ? other.getAuthor() == null : this.getAuthor().equals(other.getAuthor()))
            && (this.getResCode() == null ? other.getResCode() == null : this.getResCode().equals(other.getResCode()))
            && (this.getResTime() == null ? other.getResTime() == null : this.getResTime().equals(other.getResTime()))
            && (this.getPushType() == null ? other.getPushType() == null : this.getPushType().equals(other.getPushType()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getPid() == null) ? 0 : getPid().hashCode());
        result = prime * result + ((getOrderId() == null) ? 0 : getOrderId().hashCode());
        result = prime * result + ((getPushUser() == null) ? 0 : getPushUser().hashCode());
        result = prime * result + ((getPushContent() == null) ? 0 : getPushContent().hashCode());
        result = prime * result + ((getPushTime() == null) ? 0 : getPushTime().hashCode());
        result = prime * result + ((getAuthor() == null) ? 0 : getAuthor().hashCode());
        result = prime * result + ((getResCode() == null) ? 0 : getResCode().hashCode());
        result = prime * result + ((getResTime() == null) ? 0 : getResTime().hashCode());
        result = prime * result + ((getPushType() == null) ? 0 : getPushType().hashCode());
        return result;
    }
}